package com.wtktest.business.aop;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    private UserService userService;

    @GetMapping("/getUserInfo.do")
    public String getBusinessInfo(@Param("userName") String userName,
                                  @Param("age") String age) {
        String result = userService.getUserInfo(userName,age);
        String result1 = userService.getUserInfo1(userName);
        return result1;
    }
}
